//
//  CommonTools.swift
//  SinaProjectTest
//
//  Created by zhanghaifeng on 16/10/22.
//  Copyright © 2016年 BBSWaitting. All rights reserved.
//

import UIKit


// 搭建UI是需要的尺寸
let FONTSIZETEN: CGFloat = 10

// 微博中需要使用的通知名字
let XLSWITCHROOTVCNOTI = "XLSWITCHROOTVCNOTI"

// 新浪APP相关
let XLAPPKEY = "298736389"
let XLAPPSECRECT = "38d5fdea4b47eb1a746244d1aee8e44b"
let XLREDIRECTURI = "http://www.baidu.com"

// 账号和密码
let XLNAME = "18235148520"
let XLPASSWD = "1104044122feng"



// 屏幕的宽度和高度
let XLSCREENW = UIScreen.main.bounds.width
let XLSCREENH = UIScreen.main.bounds.height
// 微博的主题颜色
let XLTHENECOLOR = UIColor.orange
// 常用字体大小
let XLBigFontSize: CGFloat = 18
let XLNormalFontSize: CGFloat = 14
let XLSmallFontSize: CGFloat = 10

// 随机颜色
func XLRandomColor() -> UIColor{
    let r = CGFloat(arc4random()%256)
    let g = CGFloat(arc4random()%256)
    let b = CGFloat(arc4random()%256)
    return UIColor(red: r/255, green: g/255, blue: b/255, alpha: 1)
}
